package com.jf3q.admin.service.es;

import com.jf3q.common.es.entity.CourseEntity;
import com.jf3q.common.es.repository.CourseEntityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Service
public class CourseEntityService {

    @Autowired
    CourseEntityRepository courseEntityRepository;;


    public void addCourse(CourseEntity entity){
        courseEntityRepository.save(entity);
    }

    public void delCourse(String id){
        courseEntityRepository.deleteById(id);
    }


}
